package com.appspot.dcexplorer.server;

import com.appspot.dcexplorer.client.AccountsService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class AccountsServiceImpl extends RemoteServiceServlet implements AccountsService
{
   public String greetServer(String input)
   {
      String serverInfo = getServletContext().getServerInfo();
      String userAgent = getThreadLocalRequest().getHeader("User-Agent");
      return "Hello, " + input + "!<br><br>I am running " + serverInfo
         + ".<br><br>It looks like you are using:<br>" + userAgent;
   }
}
